<?php
/**
 * 
 */
class User
{

	/**
		
		this is login function

	*/

	public function login()
	{
		return 'login success goods-----';
	}


	/**
		this is register function
	*/
	public function register()
	{
		return 'register success';
	}

	/**
	带参数的调用
	*/

	public function logout($tokenStr) 
	{
		return $tokenStr;
	}
	
}

	$server = new Yar_Server(new User());
	$server->handle();

